package com.permission.dto.request.role;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @desc: 设置角色的入参
 * @projectName: permission-parent
 * @author: xhs
 * @date: 2021/11/12 16:32
 * @version: JDK 1.8
 */
@Data
public class SetRoleRequest {

    /**
     * 用户ID
     */
    @NotEmpty(message = "用户ID不能为空")
    private String userId;

    /**
     * 角色ID
     */
    @NotEmpty(message = "角色ID不能为空")
    private List<String> roleId;
}
